import request from '@/utils/request'
//标题搜索接口
export function titleSearch(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/title/search',
        method: 'get',
        params: data,
        noNeedLoading:true
    })
}
// ++++++++++++++++++++++++++++++++++客户运营统计++++++++++++++++++++++++++++++
//客户运营统计基础数据
export function channelCustomer(data: any) {
    return request({
      url: '/scrm-api/console/channel/board/census/customer',
      method: 'POST',
      data
    })
}

//客户运营统计群发任务完成率
export function channelTask(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/customer/task',
        method: 'POST',
        data
    })
}

//客户/客户群运营统计群发消息完成率
export function channelMsg(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/customer/group/msg',
        method: 'POST',
        data
    })
}
// ++++++++++++++++++++++++++++++++++客户群运营统计++++++++++++++++++++++++++++++
//客户群群运营统计数据
export function groupCustomer(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/census/group',
        method: 'POST',
        data
    })
}

//客户群运营统计群发任务完成率
export function groupTask(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/group/task',
        method: 'POST',
        data
    })
}
// ++++++++++++++++++++++++++++++++++朋友圈统计++++++++++++++++++++++++++++++
//朋友圈基础数据
export function friendBasic(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/moment/basic',
        method: 'POST',
        data
    })
}

//朋友圈折线图数据
export function friendBasicChart(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/moment/basic-chart',
        method: 'POST',
        data
    })
}

//朋友圈点赞和评论占比数据
export function friendBrowseChart(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/moment/browse',
        method: 'POST',
        data
    })
}

//朋友圈TOP10
export function friendTop(data: any) {
    return request({
        url: '/scrm-api/console/channel/board/moment/content/top',
        method: 'POST',
        data
    })
}
